package com.liuzihao.controller;

import org.springframework.beans.factory.annotation.Value;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * @Author: Liuzihao
 * @Description:
 * @Date Created in 2021-12-25 18:06
 * @Modified By:
 */
@RestController
@RequestMapping("payment")
public class PaymentController {
    @Value("${server.port}")
    String portFlag;
    @GetMapping("getPaymentById/{id}")
    String getPaymentById(@PathVariable("id") Long id){
        System.out.println("8081.....");
        return "Cloud_Lzh_Payment_Consul:"+portFlag;
    }
}
